package org.prj;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyInvocationHandler implements InvocationHandler {

	@Override
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable {
		
		System.out.println("Before invocation");
		
		IMyObject obj=new MyObject();		
		
		return method.invoke(obj, args);		
		
	}

}
